<?php
declare (strict_types = 1);

namespace app\api\controller\v1;
use app\api\model\Semester as ModelSemester;

/**
 * 教师端课程管理类
 */
class Semester extends Api
{
    /**
     * 获取所有学期
     */
    public function index()
    {
        $data = ModelSemester::getAllSemester();
        exit(json_encode($data));
    }

}